package com.eorchis.module.classapplydep.dao;

import java.util.List;

import com.eorchis.core.basedao.dao.IDaoSupport;
import com.eorchis.module.classapplydep.domain.ClassApplyDepBean;
import com.eorchis.module.classapplydep.ui.commond.ClassApplyDepQueryCommond;

/**
 * Title: IClassApplyDepDao<br>
 * Description: 培训班-单位关系数据接口<br>
 * Company: GoldGov<br>
 * Copyright @ 2012 GoldGov .All rights reserved.<br>
 * @author HuangTF
 * @createDate 2013-12-18
 * @version $Revision$
 */
public interface IClassApplyDepDao extends IDaoSupport
{
	/**
	 * 查询未选单位列表
	 * @param queryCommond
	 * @return
	 * @throws Exception
	 * @author HuangTF
	 * @createDate 2013-12-18
	 */
	public List<ClassApplyDepBean> findNoSelectedDepList(ClassApplyDepQueryCommond queryCommond)
			throws Exception;
	/**
	 * 更新已选单位限制人数
	 * @param queryCommond
	 * @return
	 * @throws Exception
	 * @author HuangTF
	 * @createDate 2013-12-19
	 */
	public void updatePersonNum(ClassApplyDepQueryCommond queryCommond)
			throws Exception;
	/**
	 * 获取已添加单位总人数
	 * @param queryCommond
	 * @return
	 * @throws Exception
	 * @author HuangTF
	 * @createDate 2013-12-19
	 */
	public Long findPersonNum(ClassApplyDepQueryCommond queryCommond)
			throws Exception;
	/**
	 * 更新已选单位限制人数
	 * @param queryCommond
	 * @return
	 * @throws Exception
	 * @author NingSS
	 * @createDate 2014-1-23
	 */
	public void updateRestrictPersonNum(ClassApplyDepQueryCommond queryCommond,Long restrictPersonNum)
			throws Exception;
}
